package com.yizhuoyan.his.webapi.controller.admin.vo;

import com.yizhuoyan.his.ao.FinExpenseCategoryAo;
import com.yizhuoyan.his.entity.FinExpenseCategoryEntity;
import lombok.Data;

@Data
public class FinExpenseCategoryVo {
    private Long id;
    private String code;
    private String name;

    public static FinExpenseCategoryVo of(FinExpenseCategoryEntity e){
        FinExpenseCategoryVo finExpenseCategoryVo = new FinExpenseCategoryVo();
        finExpenseCategoryVo.setId(e.getId());
        finExpenseCategoryVo.setCode(e.getCode());
        finExpenseCategoryVo.setName(e.getName());
        return finExpenseCategoryVo;
    }
}
